﻿// Type: System.Web.UI.WebControls.BoundField
// Assembly: System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// Assembly location: C:\Windows\Microsoft.NET\Framework\v4.0.30319\System.Web.dll

using System;
using System.Collections.Specialized;
using System.ComponentModel;
using System.Runtime;
using System.Web;
using System.Web.UI;

namespace System.Web.UI.WebControls
{
    public class BoundField : DataControlField
    {
        public static readonly string ThisExpression;

        [TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
        public BoundField();

        [WebSysDescription("Control_ValidateRequestMode")]
        [DefaultValue(ValidateRequestMode.Inherit)]
        [WebCategory("Behavior")]
        public new ValidateRequestMode ValidateRequestMode { get; set; }

        [WebSysDescription("BoundField_ApplyFormatInEditMode")]
        [WebCategory("Behavior")]
        [DefaultValue(false)]
        public virtual bool ApplyFormatInEditMode { get; set; }

        [WebSysDescription("BoundField_ConvertEmptyStringToNull")]
        [WebCategory("Behavior")]
        [DefaultValue(true)]
        public virtual bool ConvertEmptyStringToNull { get; set; }

        [TypeConverter("System.Web.UI.Design.DataSourceViewSchemaConverter, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
        [WebCategory("Data")]
        [WebSysDescription("BoundField_DataField")]
        [DefaultValue("")]
        public virtual string DataField { get; set; }

        [WebCategory("Data")]
        [DefaultValue("")]
        [WebSysDescription("BoundField_DataFormatString")]
        public virtual string DataFormatString { get; set; }

        public override string HeaderText { get; set; }

        [DefaultValue(true)]
        [WebCategory("Behavior")]
        [WebSysDescription("BoundField_HtmlEncode")]
        public virtual bool HtmlEncode { get; set; }

        [DefaultValue(true)]
        [WebCategory("Behavior")]
        public virtual bool HtmlEncodeFormatString { get; set; }

        [DefaultValue("")]
        [WebCategory("Behavior")]
        [WebSysDescription("BoundField_NullDisplayText")]
        public virtual string NullDisplayText { get; set; }

        [DefaultValue(false)]
        [WebSysDescription("BoundField_ReadOnly")]
        [WebCategory("Behavior")]
        public virtual bool ReadOnly { get; set; }

        protected virtual bool SupportsHtmlEncode { get; }

        protected override void CopyProperties(DataControlField newField);
        protected override DataControlField CreateField();
        public override void ExtractValuesFromCell(IOrderedDictionary dictionary, DataControlFieldCell cell, DataControlRowState rowState, bool includeReadOnly);
        protected virtual string FormatDataValue(object dataValue, bool encode);
        protected virtual object GetDesignTimeValue();
        protected virtual object GetValue(Control controlContainer);
        public override bool Initialize(bool enableSorting, Control control);
        public override void InitializeCell(DataControlFieldCell cell, DataControlCellType cellType, DataControlRowState rowState, int rowIndex);
        protected virtual void InitializeDataCell(DataControlFieldCell cell, DataControlRowState rowState);
        protected virtual void OnDataBindField(object sender, EventArgs e);
        protected override void LoadViewState(object state);
        public override void ValidateSupportsCallback();
    }
}
